package com.itljm.cxrMarket.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.itljm.cxrMarket.entity.HygieneViolations;
import com.itljm.cxrMarket.service.HygieneViolationsService;
import com.itljm.cxrMarket.mapper.HygieneViolationsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HygieneViolationsServiceImpl extends ServiceImpl<HygieneViolationsMapper, HygieneViolations> implements HygieneViolationsService{

    @Autowired
    private HygieneViolationsMapper hygieneViolationsMapper;

    @Override
    public List<HygieneViolations> findViolationsByPage(Page<HygieneViolations> infoPage, QueryWrapper<HygieneViolations> wrapper) {
        return hygieneViolationsMapper.findHygieneViolationsByPage(infoPage, wrapper);
    }

    @Override
    public HygieneViolations findViolationsById(Integer id) {
        return hygieneViolationsMapper.findHygieneViolationsById(id);
    }
}




